<?php
define('PWD',				dirname(__FILE__) . '/');
define('ROOT',			PWD);
define('CUSTOM_CFG_PATH',	ROOT . '/_tmp/');
define('IS_LOCAL',		$_SERVER['SERVER_ADDR'] == '192.168.56.101');
define('IS_DEBUG',		true);

include_once ROOT . '/../ujn2/ujn.php';

ujn_runtime::setSplitAlias('adam');
function page_404() { echo '404 page'; }

ujn::runApplication(array(
	'controllers_path'	=> ROOT . '/controller/',
	'models_path'			=> ROOT . '/model/',
	'templates_path'		=> PWD  . '/template/',
	'tmp_path'			=> ROOT . '/_tmp/',
	'lib_path'			=> ROOT . '/_lib/',

	'database_name'		=> 't_sm',

	'dhs' => array(
		'adam' => array(
			'mysql' => 'root:123123@192.168.0.6:3306',
		)
	)
), ( defined('RUN_FUNC') && function_exists(RUN_FUNC) ) ? RUN_FUNC : '');